<!-- 头部轮播图 -->
<template>
  <div class="head">
    <el-carousel height="34vw">
      <el-carousel-item v-for="item in arr"
                        :key="item">
        <el-image style="width: 100%; height: auto"
                  :src="item.url"
                  :fit="fit" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: 'Head',
  data() {
    return {
      arr: [
        {
          url: require('../assets/head/img_1.jpg'),
        },
        {
          url: require('../assets/head/img_2.jpg'),
        },
        {
          url: require('../assets/head/img_3.jpg'),
        },
        {
          url: require('../assets/head/img_4.jpg'),
        },
      ],
    }
  },
}
</script>

<style></style>
